// pointers to pointers
#include <stdio.h>
int main()
{
	int x = 5;
	int* p = &x;
	*p = 6;
	int** q = &p;
	int*** r = &q;
	printf("%d\n",*p);
	printf("%d\n",*q);
	printf("%d\n",**q);
	printf("%d\n",**r);
	printf("%d\n",***r);
	***r = 10;
	printf("x = %d\n",x);
	**q = *p +2;
	printf("x=%d\n",x);
}


// pointers to pointers
#include <stdio.h>
void Increment(int *p)
{
	*p = (*p) + 1 ;
	
}
int main()
{
	int a;
	a = 10;
	Increment(&a);
	printf("a = %d" ,a);
}
